Skip to content

Add airflowctl tasks state command - #71206

Open
haseebmalik18 wants to merge 1 commit into
apache:mainfrom
haseebmalik18:airflowctl-tasks-state-command
Open

Add airflowctl tasks state command#71206
haseebmalik18 wants to merge 1 commit into
apache:mainfrom
haseebmalik18:airflowctl-tasks-state-command

Conversation

@haseebmalik18

Copy link
Copy Markdown
Contributor

This adds airflowctl tasks state, which prints the state of a single task instance. It is the airflowctl equivalent of the deprecated airflow tasks state.

You select the run with either a run id or a logical date, and mapped tasks are supported through --map-index:

  airflowctl tasks state <dag_id> <task_id> <run_id>
  airflowctl tasks state <dag_id> <task_id> --logical-date <logical_date>

The output is just the state value (for example success) to stay script friendly. It reuses the existing task instance API operation, and error handling matches the sibling failed-deps and states-for-dag-run commands.

closes: #6617

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant